<template>
  <div id="app">
    <router-view></router-view>
    <Footer v-if="this.$route.meta.show" />
    <!-- 回到顶部 -->
    <ReturnTop />
  </div>
</template>

<script>
import Footer from "@/components/Footer";
import ReturnTop from "@/components/ReturnTop";
export default {
  name: "app",
  components: {
    Footer,
    ReturnTop,
  },
  watch: {
    $route() {
      document.title =
        this.$route.path == "/theme" ? "每日一签" : "创可贴作图神器";
    },
  },
};
</script>

<style lang="less" scoped>
</style>
